<?php
//使用样例不可以执行
include_once("ThePage.class.php");
$page = new ThePage();
//print_r($_GET);
$act = isset($_GET['act']) ? $_GET['act'] : '';
//echo "这事首页";
if($act){
    $domain_db = Factory::getDB('shot_domain');
    $where = "domain_shot = '{$act}'";
    $arr = $domain_db->getAll($where);
    if($arr){
        //echo $arr[0]['domain_url'];
       // header('Location: '.$arr[0]['domain_url']);
        jumpPage($arr[0]['domain_url']);
    }else{
$page->smarty->display("index.tpl");
    }
}
$page->smarty->display("index.tpl");
?>
